<!DOCTYPE html>
<html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>jQuery Script Example</title>
</head>
<body>

<div id="content">这是原始内容</div>

<!-- ✅ 引入 jQuery（CDN 方式） -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
</body>
<script>

    $.ajax({
        url: "https://bridgewater.xqls.tech/prod-api/maintenance/opsImplementationRecords/page",
        type: "GET",
        data: {
            pageNum: 1,
            pageSize: 10000,
            businessType: "XJ",
            status: 2
        },
        headers: {
            Authorization: "Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxMjQsInVzZXJfa2V5IjoiZjRlMTcwZjYtNTVhNy00ZjlhLThmMDctNzhkODdmZWNkYTA4IiwidXNlcm5hbWUiOiJ0b25naGFuZ2ppYW4ifQ.b8rtTFkv7oaLF-9yPud1lLw1Rph5SDjEx__hPiEuDldeoXEQ-em4KaT1jCD-1kBg-RCA0kxEZYh2isj1UCtTjA"  // 🔒 替换为你的实际 token
        },
        success: function(response) {
            var ids=response.rows.map(e=>e.id);
            debugger;
            ids.forEach(function (id) {
                abandoned(id);
            })
        },
        error: function(xhr, status, error) {
            console.error("请求失败:", status, error);
        }
    });
function abandoned(id) {
    $.ajax({
        url: "https://bridgewater.xqls.tech/prod-api/maintenance/opsImplementationRecords/abandoned/"+id,
        type: "POST",
        headers: {
            Authorization: "Bearer eyJhbGciOiJIUzUxMiJ9.eyJ1c2VyX2lkIjoxMjQsInVzZXJfa2V5IjoiZjRlMTcwZjYtNTVhNy00ZjlhLThmMDctNzhkODdmZWNkYTA4IiwidXNlcm5hbWUiOiJ0b25naGFuZ2ppYW4ifQ.b8rtTFkv7oaLF-9yPud1lLw1Rph5SDjEx__hPiEuDldeoXEQ-em4KaT1jCD-1kBg-RCA0kxEZYh2isj1UCtTjA"  // 🔒 替换为你的实际 token
        }, success: function(response) {
           console.log(id,response);
        },
        error: function(xhr, status, error) {
            console.error("请求失败:", status, error);
        }
    });
}
    [
        330526,330496,330607,330497,330532,330658,330498,330493,
        330495,330494,330491,330490,330492,330452,330231,330391,
        330161,330334,330132,330154,330002,329948,330074,329767,
        329766,329871,329813,329814,329798,329518,329763,329764,
        329765,329517,329644,329586,329519,329520,329512,329511,
        329513,329514,329515,329516,329507,329504,329505,329509,
        329506,329508,329499,329500,329510,329498,329497,329501,
        329491,329492,329502,329503,329493,329494,329487,329495,
        329486,329485,329496,329488,329489,329480,329479,329490,
        329478,329482,329473,329484,329481,329474,329483,329475,
        329476,329469,329477,329472,329470,329471,329465,329464,
        329466,329468,329461,329467,329463,329462,329431,329374,
        329226,329286,329169,329166,328580,328578,328970,328579,
        328577,329151,329047,328969,328573,328570,328571,328572,
        328569,328968,328568,328563,328564,328565,328562,328561
    ]
</script>
</html>
